package gui.edit.listeners;

import javax.swing.JPanel;

import gui.edit.components.ParamsBiSliders_PacingPanel;

import com.visutools.nav.bislider.BiSliderEvent;
import com.visutools.nav.bislider.BiSliderListener;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class ListenerParamBiSliderPacingChange extends ListenerParamChange implements BiSliderListener {

	
	public ListenerParamBiSliderPacingChange(JPanel parent){
		super(parent);
	}
	
	@Override
	public void newColors(BiSliderEvent e) {
		String start = Integer.toString((int) e.getMinimumColored());
		String end = Integer.toString((int) e.getMaximumColored());
		((ParamsBiSliders_PacingPanel)parent).getField().setText(start+"->"+end);
		((ParamsBiSliders_PacingPanel)parent).getControler().getParamsControl().modifyParam(((ParamsBiSliders_PacingPanel)parent).getControler(), e.getSource());
	}

	@Override
	public void newValues(BiSliderEvent e) {
		
	}

	@Override
	public void prepareJumpValues(BiSliderEvent BiSliderEvent_Arg) {
	}

	@Override
	public void notifyJumpValues(BiSliderEvent BiSliderEvent_Arg) {
	}

	@Override
	public void newMinValue(BiSliderEvent BiSliderEvent_Arg) {
	}

	@Override
	public void newMaxValue(BiSliderEvent BiSliderEvent_Arg) {
	}

	@Override
	public void newSegments(BiSliderEvent BiSliderEvent_Arg) {
	}

	@Override
	public void newMin(BiSliderEvent BiSliderEvent_Arg) {
	}

	@Override
	public void newMax(BiSliderEvent BiSliderEvent_Arg) {
	}

	@Override
	public void newGlobalRange(BiSliderEvent BiSliderEvent_Arg) {
	}

}
